class Solution {
    public int[] twoSum(int[] nums, int target) {
        return new int[]{0,1};
    }
public static void main(String[] args) {
        Solution solution = new Solution();
        // case1
        int[] nums1 = {2,7,11,15};
        int target1 = 9;
        int[] result1 = solution.twoSum(nums1,target1);
        if (result1 != null && result1.length == 2 && result1[0] == 0 && result1[1] == 1) {
            System.out.println("testcase1 ok");
        } else {
            System.out.println("testcase1 ok fail");
        }


        // case2
        int[] nums2 = {3,2,4};
        int target2 = 6;
        int[] result2 = solution.twoSum(nums1,target1);
        if (result2 != null && result2.length == 2 && result2[0] == 1 && result2[1] == 2) {
            System.out.println("testcase2 ok");
        } else {
            System.out.println("testcase2 ok fail");
        }


        // case3
        int[] nums3 = {3,3};
        int target3 = 6;
        int[] result3 = solution.twoSum(nums1,target1);
        if (result3 != null && result3.length == 2 && result3[0] == 0 && result3[1] == 1) {
            System.out.println("testcase3 ok");
        } else {
            System.out.println("testcase3 ok fail");
        }
    }
}